package com.itheima.service.system;


import com.github.pagehelper.PageInfo;
import com.itheima.domain.system.User;

import java.util.List;

public interface UserService {

    PageInfo<User> queryPage(Integer pageNum, Integer pageSize)throws Exception;

    List<User> findAll()throws Exception;

    User findById(String id)throws Exception;

    void save(User user)throws Exception;

    void deleteById(String... id)throws Exception;

    void update(User user)throws Exception;

    User login(String email,String password)throws Exception;

    /**更新用户对应的角色*/
    void updateAuthor(String userId,String... roleIds)throws Exception;
}
